package com.central.common.feign;

import com.central.common.constant.ServiceNameConstants;
import com.central.common.model.ResourceInfo;
import com.central.common.model.UdfDefined;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author td
 */
@FeignClient(name = ServiceNameConstants.TASK_MANAGE_SERVICE, decode404 = true)
public interface TaskService {
    /**
     * 通过ids查询udf
     * @return
     */
    @PostMapping("/udfDefined/findUdfsByIds")
    List<UdfDefined> findDatasourceById(@RequestBody List<Long> ids);

    /**
     * 通过ids查询资源文件
     * @return
     */
    @PostMapping("/resourceManage/findResByIds")
    List<ResourceInfo> findResByIds(@RequestBody List<Long> ids);

}
